Skip to content

Docs: add and extend docstrings across executorlib - #992

Merged
jan-janssen merged 1 commit into
mainfrom
docstring
May 29, 2026
Merged

Docs: add and extend docstrings across executorlib#992
jan-janssen merged 1 commit into
mainfrom
docstring

Conversation

@jan-janssen

Copy link
Copy Markdown
Member

Summary

  • Added class docstring to ResourceDictValidation listing all fields and their meaning
  • Added docstrings to FutureSelector and its __init__, __getattr__, __setattr__, and result methods in standalone/select.py
  • Added docstrings to _get_function_name (standalone/serialize.py), the no-op validate_resource_dict (task_scheduler/base.py), and the private helpers _get_task_input, _cancel_futures, _shutdown_executor in task_scheduler/file/shared.py
  • Extended one-liner docstrings with full Args/Returns/Raises sections in standalone/inputcheck.py (check_max_workers_and_cores, check_hostname_localhost, check_restart_limit, check_pmi_mode, validate_number_of_cores), standalone/validate.py (_get_accepted_keys, validate_resource_dict, validate_resource_dict_with_optional_keys), standalone/interactive/communication.py (interface_connect, interface_receive), and executor/base.py + task_scheduler/base.py (max_workers property/setter)

Test plan

  • Confirm python -c "import ast; ast.parse(open('src/executorlib/...').read())" passes for all modified files (already verified locally)
  • Run existing test suite to confirm no regressions

🤖 Generated with Claude Code

Add missing docstrings to ResourceDictValidation, FutureSelector, private
helpers in task_scheduler/file/shared.py, and several inputcheck validators.
Extend existing one-liners with Args/Returns/Raises sections throughout
executor/base.py, task_scheduler/base.py, standalone/serialize.py, and
standalone/interactive/communication.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@jan-janssen, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 20 minutes and 14 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c6acfe8a-23ba-4c92-b09a-74dbc182a36e

📥 Commits

Reviewing files that changed from the base of the PR and between ecdee72 and d19abcd.

📒 Files selected for processing (8)
  • src/executorlib/executor/base.py
  • src/executorlib/standalone/inputcheck.py
  • src/executorlib/standalone/interactive/communication.py
  • src/executorlib/standalone/select.py
  • src/executorlib/standalone/serialize.py
  • src/executorlib/standalone/validate.py
  • src/executorlib/task_scheduler/base.py
  • src/executorlib/task_scheduler/file/shared.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docstring

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.16%. Comparing base (ecdee72) to head (d19abcd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #992   +/-   ##
=======================================
  Coverage   94.16%   94.16%           
=======================================
  Files          39       39           
  Lines        2090     2090           
=======================================
  Hits         1968     1968           
  Misses        122      122           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jan-janssen
jan-janssen merged commit 35f2260 into main May 29, 2026
62 of 65 checks passed
@jan-janssen
jan-janssen deleted the docstring branch May 29, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant